package cn.yunhe.service;

import cn.yunhe.dao.UserDao;
import cn.yunhe.entity.User;
import cn.yunhe.util.SessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

/**
 * Created by Administrator on 2018/4/3.
 */
public class UserService {

    SqlSession session = SessionFactoryUtil.getSession();
    UserDao userDao = session.getMapper(UserDao.class);


    public User userLogin(User user) {
        return userDao.userLogin(user);
    }


}
